package com.ybox.system.api.service;

import com.ybox.system.api.factory.RemoteConfigFallbackFactory;
import com.ybox.common.core.constant.ServiceNameConstants;
import com.ybox.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * 文件服务
 *
 * @author ych
 */
@FeignClient(contextId = "remoteConfigService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteConfigFallbackFactory.class)
public interface RemoteConfigService {
    /**
     * 系统配置
     *
     * @param configKey 配置键
     * @return 结果
     */
    @GetMapping(value = "/config/configKey/{configKey}")
    public AjaxResult getConfigKey(@PathVariable(value = "configKey") String configKey);
}
